<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>My JSP 'listNote.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link href="/oa/css/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
	function topage(page) {
		var form = document.forms[0];
		form.currentpage.value = page;
		form.submit();
	}
</script>
</head>

<body>
	<div style="text-align: right;">
		<input type="button" value="添加便签"
			onclick="window.location.href='/oa/page/schedule/addNote.jsp';">
	</div>
	<table class="data_list_table">
		<tr>
			<th>编号</th>
			<th>标题</th>
			<th>内容</th>
			<th>发布时间</th>
		</tr>
		<s:form namespace="/control/schedule" action="listNote">
			<s:hidden name="currentpage" />
			<s:iterator value="pageView.records" status="entry">
				<tr>
					<td class="list_data_number">${noteId}</td>
					<td class="list_data_text">${title}</td>
					<td class="list_data_text">${content }</td>
					<td class="list_data_text"><s:date name="createTime"
							format="yyyy年MM月dd日  hh:mm:ss" />
					</td>
				</tr>
			</s:iterator>
			<tr>
				<th colspan="7" class="pager">
					<div class="pager">
						<s:include value="/page/share/paging.jsp"></s:include>
					</div>
				</th>
			</tr>
		</s:form>
	</table>
</body>
</html>
